package gui;

import javax.swing.JProgressBar;

public class ProgressUpdater implements Runnable {
	private Integer progressPercentage;
	private JProgressBar progressbar;

	public ProgressUpdater( JProgressBar progressbar, Integer progressPercentage ) {
		this.progressPercentage = progressPercentage;
		this.progressbar = progressbar;
	}

	public void run() {
		this.progressbar.setValue(progressPercentage);
		this.progressbar.repaint();
	}
}
